targets:
  debian-10: &debian
    build_dependencies:
      - libpam0g-dev
    dependencies:
      - libpam0g
      - git
  debian-11:
    <<: *debian
  debian-12:
    <<: *debian
  ubuntu-18.04:
    <<: *debian
  ubuntu-20.04:
    <<: *debian
  ubuntu-22.04:
    <<: *debian
  centos-9:
    build_dependencies:
      - pam-devel
      # required for Go buildpack
      - perl-Digest-SHA
    dependencies:
      - pam
      - git
before:
  - mv .packager/Procfile .
after:
  - mv bin/gogs gogs
after_install: ./.packager/hooks/postinst
buildpack: https://github.com/heroku/heroku-buildpack-go.git#main
